<?php
class My_Helper_View_Publish extends Zend_View_Helper_Abstract
{
	public function publish($status, $id)
    {
    	$baseURL = Zend_Controller_Front::getInstance()->getBaseUrl();
    	if($status==1)
    	{
    		$img = "t_cmd_publish.png";
    	}
    	else
    	{
    		$img = "t_cmd_publish_x.png";
    	}
    	$html = "<a href=\"#\" onclick=\"publish('$status','$id')\"><img src=\"".$baseURL."/images/".$img."\"></a>";
    	return $html;
    }
}